package controller

import (
	"admin/app/http/response"
	"admin/constant"
	"github.com/gin-gonic/gin"
)

type TestController struct {
}

func TestRegister(testGrp *gin.RouterGroup) {
	testController := &TestController{}
	testGrp.Use().GET("/test1", testController.test1)
	testGrp.Use().GET("/test2", testController.test2)
}

func (c TestController) test1(ctx *gin.Context) {

	response.Failure(ctx, 40001, constant.SelectSuccessMsg, gin.H{"token": ""})
}

func (c TestController) test2(ctx *gin.Context) {

	response.Success(ctx, 0, constant.SelectSuccessMsg, gin.H{"token": ""})
}
